Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push new updates #93

Merged
merged 21 commits into from
Sep 13, 2024
Merged

Push new updates #93

merged 21 commits into from
Sep 13, 2024

Conversation

jucasoliveira
Copy link
Owner

No description provided.

… use Plugin interface for better organization and extensibility

feat(commands): add Plugin interface with name, keyword, description, execute properties
feat(commands): refactor clear command to use Plugin interface and improve code structure
feat(commands): refactor exit command to use Plugin interface and enhance code readability
feat(commands): refactor file command to use Plugin interface and improve modularity
feat(commands): refactor fileTree command to use Plugin interface for consistency
feat(commands): refactor index file to load plugins dynamically for better scalability
feat(commands): refactor web command to use Plugin interface and enhance code structure
feat(context): remove debug logs from context functions for cleaner code
feat(engine): add hasContext property to AiEngineConfig for context handling
feat(engine): update Engine class to handle hasContext property in engine options
feat(engine): update generateResponse function to include hasContext parameter for context-aware responses

refactor(anthropic.ts): add optional parameter 'hasContext' with default value
false to control adding context based on the flag
refactor(webHandler.ts): update console log message for clarity
refactor(index.ts): add new function 'determinePlugins' to handle plugin
determination logic, refactor plugin execution flow to use the new function
and improve error handling
refactor(utils.ts): add new function 'promptCerebro' to handle prompt
response for Cerebro engine, improve error handling in 'promptResponse'
…dex.ts

feat(commands): implement loading and handling of plugins in index.ts to enhance modularity and extensibility
feat(commands): add list.ts and scrapper.ts plugins to provide listing and web scraping functionalities
feat(engine): refactor Engine class into a function to create AI engine instances based on engine type
feat(engine): add support for different AI engine types in Engine function to improve flexibility
feat(engine): update generateResponse function to use Engine function for creating AI engine instances
feat(engine): add eslint-disable comment for specific rule in anthropic.ts
feat(handlers): update handleWebResearch function to return webContext for better error handling
feat(index): refactor determinePlugins function into determinePlugins module for better organization
feat(index): update chat command in index.ts to use determinePlugins module for plugin determination

docs(intro.ts): update introduction message and usage instructions for TerminalGPT
feat(intro.ts): enhance TerminalGPT with plugin support for extended functionality
feat(rag/index.ts): add function to determine applicable plugins based on user input
refactor(utils.ts): remove unused import of clipboard package
…rt async operations

feat(intro.ts): update ASCII art in intro function for better visual presentation
feat(rag/index.ts): add functionality to store and retrieve conversation context in determinePlugins function
…ctions to handle context in different engine types

feat(anthropic.ts): Remove unnecessary console.log statement
feat(gemini.ts): Update GeminiEngine to handle context based on 'hasContext' parameter
feat(ollama.ts): Update OllamaEngine to handle context based on 'hasContext' parameter and 'baseURL' parameter
feat(openAi.ts): Update OpenAIEngine to handle context based on 'hasContext' parameter
…ommands

feat(package.json): add @types/execa to devDependencies for type definitions
feat(commands): add new 'update' command to update the package
refactor(index.ts): call checkIsLatestVersion function before apiKeyPrompt
refactor(utils.ts): add checkIsLatestVersion function to compare package version
feat(version.ts): add getTerminalGPTLatestVersion function to fetch latest version
refactor(utils.ts): import currentPackage from package.json for version comparison
refactor(tsconfig.json): set resolveJsonModule to true for JSON module resolution
…ace and createVectorStore function to improve code readability and maintainability
Copy link

github-actions bot commented Sep 12, 2024

Coverage report

St.
Category Percentage Covered / Total
🔴 Statements
38.33% (-0.57% 🔻)
161/420
🔴 Branches
14.6% (-2.4% 🔻)
20/137
🔴 Functions
24% (+0.92% 🔼)
12/50
🔴 Lines
37.5% (-0.83% 🔻)
150/400
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🟢 commands/clear.ts 100% 100% 100% 100%
🟢 commands/exit.ts 100% 100% 100% 100%
🔴 engine/common.ts 17.39% 0% 0% 10.53%
🔴 version.ts 50% 100% 0% 44.44%
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🔴 utils.ts
39.34% (-10.66% 🔻)
15% (-18.33% 🔻)
10% (-15% 🔻)
37.5% (-14.11% 🔻)
🔴 engine/openAi.ts
25% (-1.09% 🔻)
0% 0%
22.22% (-0.51% 🔻)
🔴 engine/anthropic.ts
13.33% (-2.46% 🔻)
0% 0%
12.28% (-1.23% 🔻)
🔴 engine/ollama.ts
21.21% (-0.22% 🔻)
0% 0%
18.75% (+0.23% 🔼)

Test suite run success

12 tests passing in 3 suites.

Report generated by 🧪jest coverage report action from 3442e00

…dle model data

feat(engine): create common functions combineConsecutiveMessages and ensureMessagesAlternate to process and combine messages efficiently

feat(utils.ts): add support for selecting a model based on the chosen engine
fix(utils.ts): update engine and model choices to have consistent capitalization
fix(utils.ts): update apiKeyPrompt function to include model selection and save all credentials
…toring model information

feat(webHandler.ts): pass model parameter to saveCredentials function when handling web research
refactor(rag/index.ts): improve plugin matching logic and response handling in determinePlugins function
…ajor release and update description to reflect changes made in the new version
feat(README.md): update installation instructions to use correct package name and add usage instructions
feat(README.md): add information about providing OpenAI API key on first run
docs(README.md): update prerequisites section with correct information and add links to relevant resources
feat(README.md): add section for deleting all conversations and using with npx
docs(README.md): update contributing section to refer to CONTRIBUTING.md for contribution guidelines
feat(README.md): add stats section to display project statistics
…ge to clean up the file and improve readability
refactor(context.ts): convert VectorStore class to VectorStore interf…
…anagement for better data handling

feat(utils.spec.ts): add 'model' property check in apiKeyPrompt() test for consistency with credentials management functionality
@jucasoliveira jucasoliveira merged commit ff0dd6b into jucasoliveira:main Sep 13, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant